package ${sourceBasePackage}.entity;

import com.bidb.core.dto.BaseEntityDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.math.BigDecimal;


/**
 * ${description}(${entityName})DTO类
 *
 * @author ${author}
 * @since ${createDate}
 */
@ApiModel(description = "${description}DTO")
public class ${entityName}Dto extends BaseEntityDto {

	private static final long serialVersionUID = 1L;

	<#list fields as po>
	<#if po.primaryKey != 'Y'>
    /**
     * ${po.description}
     */
    @ApiModelProperty(value = "${po.description}")
    <#if po.propertyType == 'Date'>
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    </#if>
	private ${po.propertyType} ${po.propertyName};
	</#if>
	</#list>

    <#list fields as po>
    <#if po.primaryKey != 'Y'>
    public ${po.propertyType} get${po.propertyName?cap_first}() {
        return ${po.propertyName};
    }
    public void set${po.propertyName?cap_first}(${po.propertyType} ${po.propertyName}) {
        this.${po.propertyName} = ${po.propertyName};
    }
    </#if>
    </#list>

}
